import tkinter as tk
import time

def update_time():
    current_time = time.strftime('%H:%M:%S')
    label.config(text=current_time)
    root.after(1000, update_time)

root = tk.Tk()
root.title("时钟")
root.geometry("300x150")

label = tk.Label(root, text="", font=("Arial", 32))
label.pack(pady=30)

update_time()

root.mainloop()